package com.meituan.service;

import com.meituan.pojo.entity.User;
import com.meituan.pojo.req.UserReq;
import com.meituan.pojo.req.UserRoleReq;
import com.meituan.pojo.resp.BaseResp;

import javax.servlet.http.HttpSession;

public interface UserService {
    BaseResp login(UserReq UserReq);

    BaseResp regist(UserReq UserReq, HttpSession session);

    BaseResp sendMail(String email, HttpSession session) ;


    BaseResp findAll();

    BaseResp deleteById(Integer id);

    BaseResp saveOrUpdate(UserReq userReq);

    BaseResp findRoleByUid(Integer id);

    BaseResp updateUserRole(UserRoleReq userRoleReq);

    User findUserByUserName(String userName);
}
